namespace OctopusMx {
	public class MxZDeform : Clutter.DeformEffect {
		public MxGrid grid { get; construct set; }

		public MxZDeform (MxGrid grid) {
			Object(grid: grid);
		}

		construct {
		}

		public override void deform_vertex (float width, float height, Cogl.TextureVertex vertex) {
			vertex.z = grid.translate_z (vertex.x);
		}
	}
}
